import common from "@/utils";
export const useListStore = defineStore("list", () => {
	const itemList = ref<ListItem[]>(common.getStorage("orderlist") || []);

	function setItemList(list: ListItem[]) {
		itemList.value = list;
		common.setStorage("orderlist", list);
	}

	return {
		itemList,
		setItemList
	};
});
